//此为测试函数使用
#include <SDL2/SDL.h>
#include <SDL2/SDL_events.h>
#include <SDL2/SDL_quit.h>
#include <SDL2/SDL_timer.h>
#include <SDL2/SDL_video.h>

int main(){
    SDL_Init(SDL_INIT_EVERYTHING);
    SDL_Window * win1= SDL_CreateWindow("窗口", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 600, 600, SDL_WINDOW_RESIZABLE);
    SDL_Event event1;
    while (1) {

        if(SDL_PollEvent(&event1)){

            if(event1.type==SDL_QUIT){

                break;

            }

            SDL_PushEvent(&event1);

        }

    }
    // SDL_Delay(10000);
    SDL_DestroyWindow(win1);
    SDL_Quit();
    return 0;
}